package cn.bxc.dao;

import cn.bxc.po.PayOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author bxc
 * @date 2025/6/8 14:26
 **/
@Mapper
public interface IOrderDao {
    /*
     * 新增订单
     * */
    void insert(PayOrder payOrder);


    /*
     * 查询订单
     * */
    PayOrder queryUnPayOrder(PayOrder payOrder);


    /*
    * 更新订单支付状态
    * */
    void updateOrderPayInfo(PayOrder payOrder);

    /*
    * 更新订单状态为已支付
    * */
    void changeOrderPaySuccess(PayOrder order);


    /*
    * 查询未支付订单
    * */
    List<String> queryNoPayNotifyOrder();

    /*
    * 查询超时订单
    * */
    List<String> queryTimeoutCloseOrderList();

    /*
    * 取消订单支付
    * */
    boolean changeOrderClose(String orderId);

}
